package com.mall.web.util;

import javax.servlet.http.HttpServletRequest;

/**
 * 请求的类型。eshop还是城市助手
 * 
 * @author Administrator
 *
 */
public class HttpUrlTypeUtil {

	/**
	 * 是否是ESHOP
	 * 
	 * @param request
	 * @return
	 */
	public static boolean isEshopUrl(HttpServletRequest request) {
		String uri = request.getRequestURI();
		if (uri.indexOf("/eshop/") > -1) {
			return true;
		}
		return false;
	}
	
	/**
	 * 是否是ESHOP
	 * 
	 * @param request
	 * @return
	 */
	public static boolean isWeiShang(HttpServletRequest request) {
		String uri = request.getRequestURI();
		if (uri.indexOf("/weishang/") > -1) {
			return true;
		}
		return false;
	}
}
